
<%@page import="java.util.ArrayList"%>
<%@page import="org.json.simple.JSONArray"%>
<%@page import="org.json.simple.JSONObject"%>
<%
//out.print("{\"item1\":\"I love jquery4u\",\"item2\":\"You love jQuery4u\",\"item3\":\"We love jQuery4u\"}");
%>
<%
    
    JSONObject object=new JSONObject();
    ArrayList al=new ArrayList();
    
    //JSONArray array=new JSONArray();
    //array.add("infosys");
    //array.add("tcs");
  
    //object.put("name","info");
    //al.add(object);
    object.put("name","tcs");
    al.add(object);
    out.print(al.toString());
    
    //out.print(object.toJSONString());
%>